using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._AviationTools._Charting._Cartography
{
    /// <summary>
    /// <para>Add Aviation Line Bypass</para>
    /// <para>Adjusts route polyline features that overlap point features.</para>
    /// <para>调整与点要素重叠的路径折线要素。</para>
    /// </summary>    
    [DisplayName("Add Aviation Line Bypass")]
    public class AddAviationLineBypass : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddAviationLineBypass()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_map">
        /// <para>Input Map</para>
        /// <para>The input map with a set reference scale.</para>
        /// <para>具有设置参考比例的输入地图。</para>
        /// </param>
        /// <param name="_target_line_features">
        /// <para>Target Line Features</para>
        /// <para>The polyline features representing Air Traffic Service (ATS) routes.</para>
        /// <para>折线要素表示空中交通服务 （ATS） 路线。</para>
        /// </param>
        public AddAviationLineBypass(object _in_map, object _target_line_features)
        {
            this._in_map = _in_map;
            this._target_line_features = _target_line_features;
        }
        public override string ToolboxName => "Aviation Tools";

        public override string ToolName => "Add Aviation Line Bypass";

        public override string CallName => "aviation.AddAviationLineBypass";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_map, _target_line_features, _bypass_features, _tolerance, _radius_option.GetGPValue(), _radius_scale, _radius, _merge_option.GetGPValue(), _updated_line_features];

        /// <summary>
        /// <para>Input Map</para>
        /// <para>The input map with a set reference scale.</para>
        /// <para>具有设置参考比例的输入地图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Map")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_map { get; set; }


        /// <summary>
        /// <para>Target Line Features</para>
        /// <para>The polyline features representing Air Traffic Service (ATS) routes.</para>
        /// <para>折线要素表示空中交通服务 （ATS） 路线。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_line_features { get; set; }


        /// <summary>
        /// <para>Bypass Features</para>
        /// <para>The point features that the Target Line Features value will bypass.</para>
        /// <para>“目标线要素”（Target Line Features） 值将绕过的点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Bypass Features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _bypass_features { get; set; } = null;


        /// <summary>
        /// <para>Tolerance</para>
        /// <para><xdoc>
        ///   <para>The maximum distance between the center point of a bypass feature and a route.</para>
        ///   <para>If the linear unit is not specified or is set to Unknown, it will be the same as the input map's spatial reference.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>旁路要素的中心点与路径之间的最大距离。</para>
        ///   <para>如果未指定线性单位或将其设置为未知，则该线性单位将与输入地图的空间参考相同。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _tolerance { get; set; } = null;


        /// <summary>
        /// <para>Radius Option</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of bypass radius that will be used.</para>
        ///   <bulletList>
        ///     <bullet_item>Dynamic Radius—The radius will be dynamic relative to its scale factor. This is the default.</bullet_item><para/>
        ///     <bullet_item>Constant Radius—The radius will be a constant radius.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定将使用的旁路半径的类型。</para>
        ///   <bulletList>
        ///     <bullet_item>动态半径—半径相对于其比例因子将是动态的。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>恒定半径—半径将为常定半径。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Radius Option")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _radius_option_value _radius_option { get; set; } = _radius_option_value._DYNAMIC_RADIUS;

        public enum _radius_option_value
        {
            /// <summary>
            /// <para>Dynamic Radius</para>
            /// <para>Dynamic Radius—The radius will be dynamic relative to its scale factor. This is the default.</para>
            /// <para>动态半径—半径相对于其比例因子将是动态的。这是默认设置。</para>
            /// </summary>
            [Description("Dynamic Radius")]
            [GPEnumValue("DYNAMIC_RADIUS")]
            _DYNAMIC_RADIUS,

            /// <summary>
            /// <para>Constant Radius</para>
            /// <para>Constant Radius—The radius will be a constant radius.</para>
            /// <para>恒定半径—半径将为常定半径。</para>
            /// </summary>
            [Description("Constant Radius")]
            [GPEnumValue("CONSTANT_RADIUS")]
            _CONSTANT_RADIUS,

        }

        /// <summary>
        /// <para>Radius Scale Factor</para>
        /// <para>The amount a bypass with a dynamic radius will be scaled. This parameter is only valid if Dynamic Radius is selected as the Radius Option parameter value.</para>
        /// <para>将缩放具有动态半径的旁路量。仅当选择“动态半径”作为“半径选项”参数值时，此参数才有效。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Radius Scale Factor")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _radius_scale { get; set; } = 1;


        /// <summary>
        /// <para>Radius</para>
        /// <para><xdoc>
        ///   <para>The radius of a bypass with a constant radius. This parameter is only valid if Constant Radius is selected as the Radius Option parameter value.</para>
        ///   <para>If the linear unit is not specified or is set to Unknown, it will be the same as the input map's spatial reference.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>半径恒定的旁路半径。仅当选择“恒定半径”作为“半径选项”参数值时，此参数才有效。</para>
        ///   <para>如果未指定线性单位或将其设置为未知，则该线性单位将与输入地图的空间参考相同。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Radius")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _radius { get; set; } = null;


        /// <summary>
        /// <para>Merge Option</para>
        /// <para><xdoc>
        ///   <para>Specifies whether consecutive bypass lines will be merged.</para>
        ///   <bulletList>
        ///     <bullet_item>Consecutive bypass lines will not be merged.—Consecutive bypass lines will not be merged. This is the default.</bullet_item><para/>
        ///     <bullet_item>Consecutive bypass lines will be merged.—Consecutive bypass lines will be merged.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否合并连续的旁路线。</para>
        ///   <bulletList>
        ///     <bullet_item>连续旁路线不会被合并。- 连续旁路线不会被合并。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>将合并连续的旁路线。- 将合并连续的旁路线。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Merge Option")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _merge_option_value _merge_option { get; set; } = _merge_option_value._NO_MERGE_BYPASS;

        public enum _merge_option_value
        {
            /// <summary>
            /// <para>Consecutive bypass lines will not be merged.</para>
            /// <para>Consecutive bypass lines will not be merged.—Consecutive bypass lines will not be merged. This is the default.</para>
            /// <para>连续旁路线不会被合并。- 连续旁路线不会被合并。这是默认设置。</para>
            /// </summary>
            [Description("Consecutive bypass lines will not be merged.")]
            [GPEnumValue("NO_MERGE_BYPASS")]
            _NO_MERGE_BYPASS,

            /// <summary>
            /// <para>Consecutive bypass lines will be merged.</para>
            /// <para>Consecutive bypass lines will be merged.—Consecutive bypass lines will be merged.</para>
            /// <para>将合并连续的旁路线。- 将合并连续的旁路线。</para>
            /// </summary>
            [Description("Consecutive bypass lines will be merged.")]
            [GPEnumValue("MERGE_BYPASS")]
            _MERGE_BYPASS,

        }

        /// <summary>
        /// <para>Updated Line Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_line_features { get; set; }


        public AddAviationLineBypass SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}